//
// Created by augtons on 2022/1/16.
//

#ifndef MYESP32_MPU6050_ESPRESSIF_MPU_INC_H
#define MYESP32_MPU6050_ESPRESSIF_MPU_INC_H

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"

int esp32_get_ms(unsigned long *count);
int esp32_i2c_readData(unsigned char slave_addr, unsigned char reg_addr,
                       unsigned char length, unsigned char *data);
int esp32_i2c_writeDate(unsigned char slave_addr, unsigned char reg_addr,
                        unsigned char length, unsigned char const *data);
int esp_i2c_install_driver();

#endif //MYESP32_MPU6050_ESPRESSIF_MPU_INC_H
